package net.blf2.mpgenerator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author blf2
 * @since 2018-10-04
 */
public class Company extends Model<Company> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "company_id", type = IdType.INPUT)
    private String companyId;

    private String companyName;


    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Override
    protected Serializable pkVal() {
        return this.companyId;
    }

    @Override
    public String toString() {
        return "Company{" +
        "companyId=" + companyId +
        ", companyName=" + companyName +
        "}";
    }
}
